﻿<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php
JHTML::_('behavior.modal');
?>
<table class="blog" cellspacing="0" cellpadding="0" width="100%">
<tbody>
  <tr>
    <td valign="top">
    <table width="100%" cellspacing="0" cellpadding="0">
      <tbody>
        <tr>
          <td class="article_column" width="100%" valign="top">
          	<div class="extra-indent" style="margin-top:-16px;">
                <div class="title-top1 clear png">
                    <span class="png">
                        <span class="png">&nbsp;</span>
                    </span>
                </div>
                <div class="article-title-indent png">
                    <div class="article-title-wrapper">
                    <table class="contentpaneopen">
                        <tbody>
                            <tr>
                             <td class="contentheading" width="100%"><h3>Popular Hotel<h3></td>
                            </tr>
                        </tbody>
                    </table>
                    </div>
                </div>
                <div class="clear">
                    <div class="title-bottom1 clear png">
                        <span class="png">
                             <span class="png"></span>
                        </span>
                    </div>
                </div>
            </div>
            <div class="boxIndent">
                <ul class="list-custom3">
                <?php for($i=0;$i<sizeof($hotels);$i++){?>
                <li>
                    <span class="bg1-top-right">
                        <span class="bg1-bottom-left">
                            <span class="bg1-bottom-right">
                                <span class="custom-box1-inner">
                                    <span class="custom-box1a">
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tableStyle">
                                            <tbody>
                                                <tr>
                                                    <td valign="top" width="100" style="padding-right: 5px;">
                                                        <?php if ($hotels[$i]->imageurl){?>
                                                            <img class="popular-img" width="100" height="80" border="1" src="<?php echo "images/hotels/".$hotels[$i]->imageurl;?>" />
                                                        <?php }else{?>
                                                            <img class="popular-img" border="1" src="images/default.jpg" />
                                                        <?php }?>
                                                    </td>
                                                    <td valign="top" style="width: 380px !important">
                                                        <div class="title_hotel" style="color: #F00;"><b><?php echo $hotels[$i]->hotel_name?></b></div>                                                                                                                
                                                        <div style="text-align: justify;width: 90%"><?php echo $hotels[$i]->address?></div>
                                                    </td>
                                                    <td valign="top" style="padding-right:20px; text-align:right;" height="100%">
                                                    	<table border="0" width="100%" height="100%">
                                                        	<tr>
                                                            	<td style="text-align:right">
                                                                    <div style="float: right;" class="rate-star<?php echo $hotels[$i]->star?>">&nbsp;</div>																	
                                                                    <div style="clear: both" class="price-discount" style="color: #F00;"><h2>&pound;400</h2></div>
                                                                    <div class="price-real" style="color: #00ccff;"><h2>&pound;200</h2></div>
                                                        		</td>
                                                        	</tr>
                                                         	<tr>
                                                                <td style="text-align:right; vertical-align:bottom;">
		                                                            <div class="price-real"><a class="modal gradient-button-yellow" href="http://localhost/kks-travel.com/send_mail/sendmail.php?name=<?php echo $hotels[$i]->hotel_name?>" rel="{handler: 'iframe', size: {x: 480, y: 400}}">Booking</a></div>
                                                                </td>
                                                        	</tr>
                                                         </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </span>
                                </span>
                            </span>
                        </span>
                    </span>
                </li>
                <?php }?>	
                </ul>
			</div>
          </td>
        </tr>
     </tbody>
     </table>
   </td>
 </tr>
</tbody>
</table>